#!/usr/bin/env bash

javac $1
if [ $? -eq 0 ] ; then
    java `basename $1 .java`
fi


